/**  
 * Copyright © 2014公司名字. All rights reserved.
 *
 * @Title: ExcelAction.java
 * @Prject: web
 * @Package: yang.action
 * @Description: TODO
 * @author: Administrator  
 * @date: 2014年7月12日 上午11:49:46
 * @version: V1.0  
 */
package yang.action;

import javax.servlet.http.HttpServletResponse;

import org.apache.struts2.ServletActionContext;
import org.springframework.beans.factory.annotation.Autowired;

import yang.service.ExcelServiceI;

/**
 * @ClassName: ExcelAction
 * @Description: TODO
 * @author: Administrator
 * @date: 2014年7月12日 上午11:49:46
 */
public class ExcelAction {
	private ExcelServiceI excelService;
	/**
	 * 
	 * @Title: execute
	 * @Description: 执行方法
	 * @return
	 * @throws Exception
	 * @return: String
	 */
	public String execute() throws Exception {
		HttpServletResponse response=ServletActionContext.getResponse();
		excelService.reprotExcel(response);
		return "success";
	}
	
	//----get set-----
	public ExcelServiceI getExcelService() {
		return excelService;
	}
	@Autowired
	public void setExcelService(ExcelServiceI excelService) {
		this.excelService = excelService;
	}
	
}
